-- GENERATED SPELL FOR [Marsh Baron Brok] --


function spell0_20292(pUnit, Event) --@Grasping Vines,Self--
pUnit:FullCastSpellOnTarget(8142,pUnit)
pUnit:RegisterEvent('Sorts_20292', 11000, 1)
end

function spell1_20292(pUnit, Event) --@Wild Regeneration,Self--
pUnit:FullCastSpellOnTarget(9616,pUnit)
pUnit:RegisterEvent('Sorts_20292', 23000, 1)
end

function Sorts_20292(pUnit, Event)
local choix_sorts_20292 = math.random(0, 1)
if choix_sorts_20292 == 0 then
pUnit:RegisterEvent('spell0_20292', 1, 1)
end
if choix_sorts_20292 == 1 then
pUnit:RegisterEvent('spell1_20292', 1, 1)
end
end

function mob20292_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20292', math.random(1500, 3000), 1)
end

function mob20292_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20292_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20292_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20292, 1, 'mob20292_Action')
RegisterUnitEvent(20292, 2, 'mob20292_Leave')
RegisterUnitEvent(20292, 3, 'mob20292_Kill')
RegisterUnitEvent(20292, 4, 'mob20292_Die')
